// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PUR_APP_ITEM
// * CreateDate    : 2014-06-05 18:30:24
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:24
// * LastChanger   : 2014-06-05 18:30:24
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class PurAppItemTable : TableInfo
    {
		public const string C_TableName = "PUR_APP_ITEM";
		
		public const string C_ID = "ID";
		public const string C_PUR_APP_ID = "PUR_APP_ID";
		public const string C_PRODUCT_ID = "PRODUCT_ID";
		public const string C_PRODUCT_NAME = "PRODUCT_NAME";
		public const string C_PRODUCT_CODE = "PRODUCT_CODE";
		public const string C_QTY = "QTY";
		public const string C_UNIT = "UNIT";
		public const string C_PRICE = "PRICE";
		public const string C_REQUIRED_DATE = "REQUIRED_DATE";
		public const string C_REMARK = "REMARK";
		public const string C_STATUS = "STATUS";
		
		public PurAppItemTable()
        {
            _tableName = "PUR_APP_ITEM";
        }
		
		protected static PurAppItemTable _current;
        public static PurAppItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new PurAppItemTable();

            _current.Add(C_ID, new ColumnInfo(C_ID,"Id", true, typeof(string)));
            _current.Add(C_PUR_APP_ID, new ColumnInfo(C_PUR_APP_ID,"PurAppId", false, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID,"ProductId", false, typeof(string)));
            _current.Add(C_PRODUCT_NAME, new ColumnInfo(C_PRODUCT_NAME,"ProductName", false, typeof(string)));
            _current.Add(C_PRODUCT_CODE, new ColumnInfo(C_PRODUCT_CODE,"ProductCode", false, typeof(string)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY,"Qty", false, typeof(decimal)));
            _current.Add(C_UNIT, new ColumnInfo(C_UNIT,"Unit", false, typeof(string)));
            _current.Add(C_PRICE, new ColumnInfo(C_PRICE,"Price", false, typeof(decimal)));
            _current.Add(C_REQUIRED_DATE, new ColumnInfo(C_REQUIRED_DATE,"RequiredDate", false, typeof(DateTime)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
			
		}
		
		public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }
		
		public ColumnInfo PUR_APP_ID
        {
            get { return this[C_PUR_APP_ID]; }
        }
		
		public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }
		
		public ColumnInfo PRODUCT_NAME
        {
            get { return this[C_PRODUCT_NAME]; }
        }
		
		public ColumnInfo PRODUCT_CODE
        {
            get { return this[C_PRODUCT_CODE]; }
        }
		
		public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }
		
		public ColumnInfo UNIT
        {
            get { return this[C_UNIT]; }
        }
		
		public ColumnInfo PRICE
        {
            get { return this[C_PRICE]; }
        }
		
		public ColumnInfo REQUIRED_DATE
        {
            get { return this[C_REQUIRED_DATE]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		
		
	}
}

